home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / basic / imb9108.zip / MAKEFIGS < prev    next >
Text File  |  1991-08-02  |  1KB  |  67 lines

  1. Figures for the article "Simplify program maintenance with NMAKE"
  2.  
  3.  
  4. Figure A: MAKEMAIN.MAK
  5.  
  6. ALL: makemain.exe
  7. makemain.obj: makemain.bas
  8.   BC makemain.bas;
  9. makesub1.obj: makesub1.bas
  10.   BC makesub1.bas;
  11. makesub2.obj: makesub2.bas
  12.   BC makesub2.bas;
  13. maketest.exe: makemain.obj makesub1.obj makesub2.obj
  14.   link makemain.obj+makesub1.obj+makesub2.obj, makemain.exe;
  15.  
  16.  
  17. Figure B:  MAKEBOTH.MAK
  18.  
  19. ALL: makemain.exe maketwo.exe
  20. makemain.obj: makemain.bas
  21.   BC makemain.bas;
  22. maketwo.obj: maketwo.bas
  23.   BC maketwo.bas;
  24. makesub1.obj: makesub1.bas
  25.   BC makesub1.bas;
  26. makesub2.obj: makesub2.bas
  27.   BC makesub2.bas;
  28. maketest.exe: makemain.obj makesub1.obj makesub2.obj
  29.   link makemain.obj+makesub1.obj+makesub2.obj, makemain.exe;
  30. maketwo.exe:maketwo.obj makesub1.obj makesub2.obj
  31.   link maketwo.obj+makesub1.obj+makesub2.obj, maketwo.exe;
  32.  
  33.  
  34. Figure C: MAKEADV1.MAK
  35. #macros
  36. mfile=makemain
  37.  
  38. ALL: $(mfile).exe
  39. $(mfile).obj: $(mfile).bas
  40.   BC $(mfile).bas;
  41. makesub1.obj: makesub1.bas
  42.   BC makesub1.bas;
  43. makesub2.obj: makesub2.bas
  44.   BC makesub2.bas;
  45. $(mfile).exe: $(mfile).obj makesub1.obj makesub2.obj
  46.   link $(mfile).obj+makesub1.obj+makesub2.obj, $(mfile).exe;
  47.  
  48.  
  49.  
  50. Figure D:  MAKEADV2.MAK
  51.  
  52. # macros
  53. mfile=makemain
  54.  
  55. #inference rules
  56. .BAS.OBJ:
  57.   BC $< ;
  58. .OBJ.EXE:
  59.   LINK $** ;
  60.  
  61. ALL: $(mfile).exe
  62. $(mfile).obj: $(mfile).bas
  63. makesub1.obj: makesub1.bas
  64. makesub2.obj: makesub2.bas
  65. $(mfile).exe: $(mfile).obj makesub1.obj makesub2.obj
  66.  
  67.